import * as Apollo from '@apollo/client'
import { gql } from '@apollo/client'
export type Maybe<T> = T | null
export type InputMaybe<T> = Maybe<T>
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> }
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> }
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never }
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }
const defaultOptions = {} as const
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
  ID: { input: string | number; output: string }
  String: { input: string; output: string }
  Boolean: { input: boolean; output: boolean }
  Int: { input: number; output: number }
  Float: { input: number; output: number }
  Date: { input: any; output: any }
  _FieldSet: { input: any; output: any }
}

export type CustomerPageResultDto = Page & {
  __typename?: 'CustomerPageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records: Array<CustomerResultDto>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  客户查询请求传输层对象 */
export type CustomerQueryDto = {
  /**  附件地址 */
  attachUrl?: InputMaybe<Scalars['String']['input']>
  /**  品牌 */
  brand?: InputMaybe<Scalars['String']['input']>
  /**  渠道id */
  channelId?: InputMaybe<Scalars['String']['input']>
  /**  渠道名 */
  channelName?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['Date']['input']>
  /**  录入人id */
  creatorId?: InputMaybe<Scalars['String']['input']>
  /**  录入人姓名 */
  creatorName?: InputMaybe<Scalars['String']['input']>
  /**  跟进状态 */
  followUpStateId?: InputMaybe<Scalars['String']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  客户名 */
  name?: InputMaybe<Scalars['String']['input']>
  /**  手机号 */
  phone?: InputMaybe<Scalars['String']['input']>
  /**  拍摄类型 */
  photoType?: InputMaybe<Scalars['String']['input']>
  /**  备注 */
  remark?: InputMaybe<Scalars['String']['input']>
  /**  销售人员id */
  sellerUserId?: InputMaybe<Scalars['String']['input']>
  /**  数据来源 */
  source?: InputMaybe<Scalars['String']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['Date']['input']>
  /**  微信号 */
  wxId?: InputMaybe<Scalars['String']['input']>
}

/**  客户查询结果传输层对象 */
export type CustomerResultDto = {
  __typename?: 'CustomerResultDTO'
  /**  附件地址 */
  attachUrl?: Maybe<Scalars['String']['output']>
  /**  品牌 */
  brand?: Maybe<Scalars['String']['output']>
  /**  渠道id */
  channelId?: Maybe<Scalars['String']['output']>
  /**  渠道名 */
  channelName?: Maybe<Scalars['String']['output']>
  /**  创建时间 */
  createTime?: Maybe<Scalars['Date']['output']>
  /**  录入人id */
  creatorId?: Maybe<Scalars['String']['output']>
  /**  录入人姓名 */
  creatorName?: Maybe<Scalars['String']['output']>
  /**  跟进状态 */
  followUpStateId?: Maybe<Scalars['String']['output']>
  id: Scalars['ID']['output']
  /**  客户名 */
  name?: Maybe<Scalars['String']['output']>
  /**  手机号 */
  phone?: Maybe<Scalars['String']['output']>
  /**  拍摄类型 */
  photoType?: Maybe<Scalars['String']['output']>
  /**  备注 */
  remark?: Maybe<Scalars['String']['output']>
  /**  销售人员id */
  sellerUserId?: Maybe<Scalars['String']['output']>
  /**  数据来源 */
  source?: Maybe<Scalars['String']['output']>
  /**  租户id */
  tenantId?: Maybe<Scalars['String']['output']>
  /**  更新时间 */
  updateTime?: Maybe<Scalars['Date']['output']>
  /**  微信号 */
  wxId?: Maybe<Scalars['String']['output']>
}

/**  更新客户传输层对象 */
export type CustomerUpdateDto = {
  /**  附件地址 */
  attachUrl?: InputMaybe<Scalars['String']['input']>
  /**  品牌 */
  brand?: InputMaybe<Scalars['String']['input']>
  /**  渠道id */
  channelId?: InputMaybe<Scalars['String']['input']>
  /**  渠道名 */
  channelName?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['Date']['input']>
  /**  录入人id */
  creatorId?: InputMaybe<Scalars['String']['input']>
  /**  录入人姓名 */
  creatorName?: InputMaybe<Scalars['String']['input']>
  /**  跟进状态 */
  followUpStateId?: InputMaybe<Scalars['String']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  客户名 */
  name?: InputMaybe<Scalars['String']['input']>
  /**  手机号 */
  phone?: InputMaybe<Scalars['String']['input']>
  /**  拍摄类型 */
  photoType?: InputMaybe<Scalars['String']['input']>
  /**  备注 */
  remark?: InputMaybe<Scalars['String']['input']>
  /**  销售人员id */
  sellerUserId?: InputMaybe<Scalars['String']['input']>
  /**  数据来源 */
  source?: InputMaybe<Scalars['String']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['Date']['input']>
  /**  微信号 */
  wxId?: InputMaybe<Scalars['String']['input']>
}

export type DialoguePageResultDto = Page & {
  __typename?: 'DialoguePageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records: Array<DialogueResultDto>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  客服 - 对话表查询请求传输层对象 */
export type DialogueQueryDto = {
  /**  appId */
  appId?: InputMaybe<Scalars['String']['input']>
  /**  app类型 */
  appType?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建者 */
  creator?: InputMaybe<Scalars['String']['input']>
  /**  是否删除 */
  deleted?: InputMaybe<Scalars['Boolean']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否置顶 */
  isTop?: InputMaybe<Scalars['Boolean']['input']>
  lastMessage?: InputMaybe<Scalars['String']['input']>
  /**  备注 */
  remark?: InputMaybe<Scalars['String']['input']>
  /**  对话场景 */
  scope?: InputMaybe<Scalars['Int']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  置顶时间 */
  topTime?: InputMaybe<Scalars['String']['input']>
  unreadTotal?: InputMaybe<Scalars['Int']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新者 */
  updater?: InputMaybe<Scalars['String']['input']>
  /**  社交用户id */
  userId?: InputMaybe<Scalars['String']['input']>
}

/**  客服 - 对话表查询结果传输层对象 */
export type DialogueResultDto = {
  __typename?: 'DialogueResultDTO'
  /**  appId */
  appId: Scalars['String']['output']
  /**  app类型 */
  appType: Scalars['String']['output']
  /**  创建时间 */
  createTime: Scalars['Date']['output']
  /**  创建者 */
  creator: Scalars['String']['output']
  /**  是否删除 */
  deleted?: Maybe<Scalars['Boolean']['output']>
  id: Scalars['ID']['output']
  /**  是否置顶 */
  isTop: Scalars['Boolean']['output']
  lastMessage: Scalars['String']['output']
  /**  备注 */
  remark?: Maybe<Scalars['String']['output']>
  /**  对话场景 */
  scope: Scalars['Int']['output']
  /**  置顶时间 */
  topTime?: Maybe<Scalars['String']['output']>
  unreadTotal: Scalars['Int']['output']
  /**  更新时间 */
  updateTime?: Maybe<Scalars['String']['output']>
  /**  更新者 */
  updater?: Maybe<Scalars['String']['output']>
  /**  社交用户 */
  user?: Maybe<SocialUserResultDto>
  /**  社交用户id */
  userId: Scalars['String']['output']
}

/**  更新客服 - 对话表传输层对象 */
export type DialogueUpdateDto = {
  /**  appId */
  appId?: InputMaybe<Scalars['String']['input']>
  /**  app类型 */
  appType?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建者 */
  creator?: InputMaybe<Scalars['String']['input']>
  /**  是否删除 */
  deleted?: InputMaybe<Scalars['Boolean']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否置顶 */
  isTop?: InputMaybe<Scalars['Boolean']['input']>
  lastMessage?: InputMaybe<Scalars['String']['input']>
  /**  备注 */
  remark?: InputMaybe<Scalars['String']['input']>
  /**  对话场景 */
  scope?: InputMaybe<Scalars['Int']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  置顶时间 */
  topTime?: InputMaybe<Scalars['String']['input']>
  unreadTotal?: InputMaybe<Scalars['Int']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新者 */
  updater?: InputMaybe<Scalars['String']['input']>
  /**  社交用户id */
  userId?: InputMaybe<Scalars['String']['input']>
}

export enum ErrorDetail {
  /**
   * The deadline expired before the operation could complete.
   *
   * For operations that change the state of the system, this error
   * may be returned even if the operation has completed successfully.
   * For example, a successful response from a server could have been
   * delayed long enough for the deadline to expire.
   *
   * HTTP Mapping: 504 Gateway Timeout
   * Error Type: UNAVAILABLE
   */
  DeadlineExceeded = 'DEADLINE_EXCEEDED',
  /**
   * The server detected that the client is exhibiting a behavior that
   * might be generating excessive load.
   *
   * HTTP Mapping: 429 Too Many Requests or 420 Enhance Your Calm
   * Error Type: UNAVAILABLE
   */
  EnhanceYourCalm = 'ENHANCE_YOUR_CALM',
  /**
   * The requested field is not found in the schema.
   *
   * This differs from `NOT_FOUND` in that `NOT_FOUND` should be used when a
   * query is valid, but is unable to return a result (if, for example, a
   * specific video id doesn't exist). `FIELD_NOT_FOUND` is intended to be
   * returned by the server to signify that the requested field is not known to exist.
   * This may be returned in lieu of failing the entire query.
   * See also `PERMISSION_DENIED` for cases where the
   * requested field is invalid only for the given user or class of users.
   *
   * HTTP Mapping: 404 Not Found
   * Error Type: BAD_REQUEST
   */
  FieldNotFound = 'FIELD_NOT_FOUND',
  /**
   * The client specified an invalid argument.
   *
   * Note that this differs from `FAILED_PRECONDITION`.
   * `INVALID_ARGUMENT` indicates arguments that are problematic
   * regardless of the state of the system (e.g., a malformed file name).
   *
   * HTTP Mapping: 400 Bad Request
   * Error Type: BAD_REQUEST
   */
  InvalidArgument = 'INVALID_ARGUMENT',
  /**
   * The provided cursor is not valid.
   *
   * The most common usage for this error is when a client is paginating
   * through a list that uses stateful cursors. In that case, the provided
   * cursor may be expired.
   *
   * HTTP Mapping: 404 Not Found
   * Error Type: NOT_FOUND
   */
  InvalidCursor = 'INVALID_CURSOR',
  /**
   * Unable to perform operation because a required resource is missing.
   *
   * Example: Client is attempting to refresh a list, but the specified
   * list is expired. This requires an action by the client to get a new list.
   *
   * If the user is simply trying GET a resource that is not found,
   * use the NOT_FOUND error type. FAILED_PRECONDITION.MISSING_RESOURCE
   * is to be used particularly when the user is performing an operation
   * that requires a particular resource to exist.
   *
   * HTTP Mapping: 400 Bad Request or 500 Internal Server Error
   * Error Type: FAILED_PRECONDITION
   */
  MissingResource = 'MISSING_RESOURCE',
  /**
   * Service Error.
   *
   * There is a problem with an upstream service.
   *
   * This may be returned if a gateway receives an unknown error from a service
   * or if a service is unreachable.
   * If a request times out which waiting on a response from a service,
   * `DEADLINE_EXCEEDED` may be returned instead.
   * If a service returns a more specific error Type, the specific error Type may
   * be returned instead.
   *
   * HTTP Mapping: 502 Bad Gateway
   * Error Type: UNAVAILABLE
   */
  ServiceError = 'SERVICE_ERROR',
  /**
   * Request failed due to network errors.
   *
   * HTTP Mapping: 503 Unavailable
   * Error Type: UNAVAILABLE
   */
  TcpFailure = 'TCP_FAILURE',
  /**
   * Request throttled based on server concurrency limits.
   *
   * HTTP Mapping: 503 Unavailable
   * Error Type: UNAVAILABLE
   */
  ThrottledConcurrency = 'THROTTLED_CONCURRENCY',
  /**
   * Request throttled based on server CPU limits
   *
   * HTTP Mapping: 503 Unavailable.
   * Error Type: UNAVAILABLE
   */
  ThrottledCpu = 'THROTTLED_CPU',
  /**
   * The operation is not implemented or is not currently supported/enabled.
   *
   * HTTP Mapping: 501 Not Implemented
   * Error Type: BAD_REQUEST
   */
  Unimplemented = 'UNIMPLEMENTED',
  /**
   * Unknown error.
   *
   * This error should only be returned when no other error detail applies.
   * If a client sees an unknown errorDetail, it will be interpreted as UNKNOWN.
   *
   * HTTP Mapping: 500 Internal Server Error
   */
  Unknown = 'UNKNOWN',
}

export enum ErrorType {
  /**
   * Bad Request.
   *
   * There is a problem with the request.
   * Retrying the same request is not likely to succeed.
   * An example would be a query or argument that cannot be deserialized.
   *
   * HTTP Mapping: 400 Bad Request
   */
  BadRequest = 'BAD_REQUEST',
  /**
   * The operation was rejected because the system is not in a state
   * required for the operation's execution.  For example, the directory
   * to be deleted is non-empty, an rmdir operation is applied to
   * a non-directory, etc.
   *
   * Service implementers can use the following guidelines to decide
   * between `FAILED_PRECONDITION` and `UNAVAILABLE`:
   *
   * - Use `UNAVAILABLE` if the client can retry just the failing call.
   * - Use `FAILED_PRECONDITION` if the client should not retry until
   * the system state has been explicitly fixed.  E.g., if an "rmdir"
   *      fails because the directory is non-empty, `FAILED_PRECONDITION`
   * should be returned since the client should not retry unless
   * the files are deleted from the directory.
   *
   * HTTP Mapping: 400 Bad Request or 500 Internal Server Error
   */
  FailedPrecondition = 'FAILED_PRECONDITION',
  /**
   * Internal error.
   *
   * An unexpected internal error was encountered. This means that some
   * invariants expected by the underlying system have been broken.
   * This error code is reserved for serious errors.
   *
   * HTTP Mapping: 500 Internal Server Error
   */
  Internal = 'INTERNAL',
  /**
   * The requested entity was not found.
   *
   * This could apply to a resource that has never existed (e.g. bad resource id),
   * or a resource that no longer exists (e.g. cache expired.)
   *
   * Note to server developers: if a request is denied for an entire class
   * of users, such as gradual feature rollout or undocumented allowlist,
   * `NOT_FOUND` may be used. If a request is denied for some users within
   * a class of users, such as user-based access control, `PERMISSION_DENIED`
   * must be used.
   *
   * HTTP Mapping: 404 Not Found
   */
  NotFound = 'NOT_FOUND',
  /**
   * The caller does not have permission to execute the specified
   * operation.
   *
   * `PERMISSION_DENIED` must not be used for rejections
   * caused by exhausting some resource or quota.
   * `PERMISSION_DENIED` must not be used if the caller
   * cannot be identified (use `UNAUTHENTICATED`
   * instead for those errors).
   *
   * This error Type does not imply the
   * request is valid or the requested entity exists or satisfies
   * other pre-conditions.
   *
   * HTTP Mapping: 403 Forbidden
   */
  PermissionDenied = 'PERMISSION_DENIED',
  /**
   * The request does not have valid authentication credentials.
   *
   * This is intended to be returned only for routes that require
   * authentication.
   *
   * HTTP Mapping: 401 Unauthorized
   */
  Unauthenticated = 'UNAUTHENTICATED',
  /**
   * Currently Unavailable.
   *
   * The service is currently unavailable.  This is most likely a
   * transient condition, which can be corrected by retrying with
   * a backoff.
   *
   * HTTP Mapping: 503 Unavailable
   */
  Unavailable = 'UNAVAILABLE',
  /**
   * Unknown error.
   *
   * For example, this error may be returned when
   * an error code received from another address space belongs to
   * an error space that is not known in this address space.  Also
   * errors raised by APIs that do not return enough error information
   * may be converted to this error.
   *
   * If a client sees an unknown errorType, it will be interpreted as UNKNOWN.
   * Unknown errors MUST NOT trigger any special behavior. These MAY be treated
   * by an implementation as being equivalent to INTERNAL.
   *
   * When possible, a more specific error should be provided.
   *
   * HTTP Mapping: 520 Unknown Error
   */
  Unknown = 'UNKNOWN',
}

export type InfraFilePageResultDto = Page & {
  __typename?: 'InfraFilePageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records?: Maybe<Array<Maybe<InfraFileResultDto>>>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  文件表查询请求传输层对象 */
export type InfraFileQueryDto = {
  /**  配置编号 */
  configId?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建者 */
  creator?: InputMaybe<Scalars['String']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否删除 */
  isDeleted?: InputMaybe<Scalars['Boolean']['input']>
  /**  文件名 */
  name?: InputMaybe<Scalars['String']['input']>
  /**  文件路径 */
  path?: InputMaybe<Scalars['String']['input']>
  /**  文件大小 */
  size?: InputMaybe<Scalars['Int']['input']>
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  文件类型 */
  type?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新者 */
  updater?: InputMaybe<Scalars['String']['input']>
  /**  文件 URL */
  url?: InputMaybe<Scalars['String']['input']>
}

/**  文件表查询结果传输层对象 */
export type InfraFileResultDto = {
  __typename?: 'InfraFileResultDTO'
  /**  配置编号 */
  configId?: Maybe<Scalars['String']['output']>
  /**  创建时间 */
  createTime?: Maybe<Scalars['String']['output']>
  /**  创建者 */
  creator?: Maybe<Scalars['String']['output']>
  id?: Maybe<Scalars['ID']['output']>
  /**  是否删除 */
  isDeleted?: Maybe<Scalars['Boolean']['output']>
  /**  文件名 */
  name?: Maybe<Scalars['String']['output']>
  /**  文件路径 */
  path?: Maybe<Scalars['String']['output']>
  /**  文件大小 */
  size?: Maybe<Scalars['Int']['output']>
  tenantId?: Maybe<Scalars['String']['output']>
  /**  文件类型 */
  type?: Maybe<Scalars['String']['output']>
  /**  更新时间 */
  updateTime?: Maybe<Scalars['String']['output']>
  /**  更新者 */
  updater?: Maybe<Scalars['String']['output']>
  /**  文件 URL */
  url?: Maybe<Scalars['String']['output']>
}

/**  更新文件表传输层对象 */
export type InfraFileUpdateDto = {
  /**  配置编号 */
  configId?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建者 */
  creator?: InputMaybe<Scalars['String']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否删除 */
  isDeleted?: InputMaybe<Scalars['Boolean']['input']>
  /**  文件名 */
  name?: InputMaybe<Scalars['String']['input']>
  /**  文件路径 */
  path?: InputMaybe<Scalars['String']['input']>
  /**  文件大小 */
  size?: InputMaybe<Scalars['Int']['input']>
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  文件类型 */
  type?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新者 */
  updater?: InputMaybe<Scalars['String']['input']>
  /**  文件 URL */
  url?: InputMaybe<Scalars['String']['input']>
}

export type MessagePageResultDto = Page & {
  __typename?: 'MessagePageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records: Array<MessageResultDto>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  客服 - 消息表查询请求传输层对象 */
export type MessageQueryDto = {
  /**  消息内容 */
  content?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建者 */
  creator?: InputMaybe<Scalars['String']['input']>
  /**  是否删除 */
  deleted?: InputMaybe<Scalars['Boolean']['input']>
  /**  会话id */
  dialogueId: Scalars['String']['input']
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否已读 */
  isRead?: InputMaybe<Scalars['Boolean']['input']>
  /**  是否是系统用户 */
  isSystemUser?: InputMaybe<Scalars['Boolean']['input']>
  /**  消息类型 */
  messageType?: InputMaybe<Scalars['String']['input']>
  /**  已读时间 */
  readTime?: InputMaybe<Scalars['String']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新者 */
  updater?: InputMaybe<Scalars['String']['input']>
}

/**  客服 - 消息表查询结果传输层对象 */
export type MessageResultDto = {
  __typename?: 'MessageResultDTO'
  /**  消息内容 */
  content: Scalars['String']['output']
  /**  创建时间 */
  createTime: Scalars['String']['output']
  /**  创建者 */
  creator: Scalars['String']['output']
  /**  是否删除 */
  deleted?: Maybe<Scalars['Boolean']['output']>
  /**  会话id */
  dialogueId: Scalars['String']['output']
  id: Scalars['ID']['output']
  /**  是否已读 */
  isRead: Scalars['Boolean']['output']
  /**  是否是系统用户 */
  isSystemUser?: Maybe<Scalars['Boolean']['output']>
  /**  消息类型 */
  messageType: Scalars['String']['output']
  /**  已读时间 */
  readTime?: Maybe<Scalars['String']['output']>
  /**  社交用户 */
  socialUser?: Maybe<SocialUserResultDto>
  /**  系统用户 */
  systemUser?: Maybe<SystemUserResultDto>
  /**  租户id */
  tenantId?: Maybe<Scalars['String']['output']>
  /**  更新时间 */
  updateTime?: Maybe<Scalars['String']['output']>
  /**  更新者 */
  updater?: Maybe<Scalars['String']['output']>
}

/**  更新客服 - 消息表传输层对象 */
export type MessageUpdateDto = {
  /**  消息内容 */
  content?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['Date']['input']>
  /**  创建者 */
  creator?: InputMaybe<Scalars['String']['input']>
  /**  是否删除 */
  deleted?: InputMaybe<Scalars['Boolean']['input']>
  /**  会话id */
  dialogueId?: InputMaybe<Scalars['String']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否已读 */
  isRead?: InputMaybe<Scalars['Boolean']['input']>
  /**  是否是系统用户 */
  isSystemUser?: InputMaybe<Scalars['Boolean']['input']>
  /**  消息类型 */
  messageType?: InputMaybe<Scalars['String']['input']>
  /**  已读时间 */
  readTime?: InputMaybe<Scalars['Date']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['Date']['input']>
  /**  更新者 */
  updater?: InputMaybe<Scalars['String']['input']>
}

export type Mutation = {
  __typename?: 'Mutation'
  /**  添加客户 */
  addCustomer: CustomerResultDto
  /**  添加客服 - 对话表 */
  addDialogue: DialogueResultDto
  /**  添加文件表 */
  addInfraFile?: Maybe<InfraFileResultDto>
  /**  添加客服 - 消息表 */
  addMessage: MessageResultDto
  /**  添加二维码 - 社交用户标签绑定表 */
  addQrCodeSocialUserTagRelation: QrCodeSocialUserTagRelationResultDto
  /**  添加系统角色表 */
  addRole?: Maybe<RoleResultDto>
  /**  添加二维码 */
  addSocialQrCode: SocialQrCodeResultDto
  /**  添加社交用户表 */
  addSocialUser: SocialUserResultDto
  /**  添加社交用户标签 */
  addSocialUserTag: SocialUserTagResultDto
  /**  添加社交用户 - 标签 关联表 */
  addSocialUserTagRelation: SocialUserTagRelationResultDto
  /**  添加系统角色表 */
  addSystemRole?: Maybe<SystemRoleResultDto>
  /**  添加系统用户表 */
  addSystemUser?: Maybe<SystemUserResultDto>
  /**  添加系统租户表 */
  addTenant?: Maybe<TenantResultDto>
  /**  删除客户 */
  removeCustomerByIds: Scalars['Boolean']['output']
  /**  删除客服 - 对话表 */
  removeDialogueByIds: Scalars['Boolean']['output']
  /**  删除文件表 */
  removeInfraFileByIds?: Maybe<Scalars['Boolean']['output']>
  /**  删除客服 - 消息表 */
  removeMessageByIds: Scalars['Boolean']['output']
  /**  删除二维码 - 社交用户标签绑定表 */
  removeQrCodeSocialUserTagRelationByIds: Scalars['Boolean']['output']
  /**  删除系统角色表 */
  removeRoleByIds?: Maybe<Scalars['Boolean']['output']>
  /**  删除二维码 */
  removeSocialQrCodeByIds: Scalars['Boolean']['output']
  /**  删除社交用户表 */
  removeSocialUserByIds: Scalars['Boolean']['output']
  /**  删除社交用户标签 */
  removeSocialUserTagByIds: Scalars['Boolean']['output']
  /**  删除社交用户 - 标签 关联表 */
  removeSocialUserTagRelationByIds: Scalars['Boolean']['output']
  /**  删除系统角色表 */
  removeSystemRoleByIds?: Maybe<Scalars['Boolean']['output']>
  /**  删除系统用户表 */
  removeSystemUserByIds?: Maybe<Scalars['Boolean']['output']>
  /**  删除系统租户表 */
  removeTenantByIds?: Maybe<Scalars['Boolean']['output']>
  /**  更新客户 */
  updateCustomer: CustomerResultDto
  /**  更新客服 - 对话表 */
  updateDialogue: DialogueResultDto
  /**  更新文件表 */
  updateInfraFile?: Maybe<InfraFileResultDto>
  /**  更新客服 - 消息表 */
  updateMessage: MessageResultDto
  /**  更新二维码 - 社交用户标签绑定表 */
  updateQrCodeSocialUserTagRelation: QrCodeSocialUserTagRelationResultDto
  /**  更新系统角色表 */
  updateRole?: Maybe<RoleResultDto>
  /**  更新二维码 */
  updateSocialQrCode: SocialQrCodeResultDto
  /**  更新社交用户表 */
  updateSocialUser: SocialUserResultDto
  /**  更新社交用户标签 */
  updateSocialUserTag: SocialUserTagResultDto
  /**  更新社交用户 - 标签 关联表 */
  updateSocialUserTagRelation: SocialUserTagRelationResultDto
  /**  更新系统角色表 */
  updateSystemRole?: Maybe<SystemRoleResultDto>
  /**  更新系统用户表 */
  updateSystemUser?: Maybe<SystemUserResultDto>
  /**  更新系统租户表 */
  updateTenant?: Maybe<TenantResultDto>
}

export type MutationAddCustomerArgs = {
  dto: CustomerUpdateDto
}

export type MutationAddDialogueArgs = {
  dto: DialogueUpdateDto
}

export type MutationAddInfraFileArgs = {
  dto?: InputMaybe<InfraFileUpdateDto>
}

export type MutationAddMessageArgs = {
  dto: MessageUpdateDto
}

export type MutationAddQrCodeSocialUserTagRelationArgs = {
  dto: QrCodeSocialUserTagRelationUpdateDto
}

export type MutationAddRoleArgs = {
  dto?: InputMaybe<RoleUpdateDto>
}

export type MutationAddSocialQrCodeArgs = {
  dto: SocialQrCodeUpdateDto
}

export type MutationAddSocialUserArgs = {
  dto: SocialUserUpdateDto
}

export type MutationAddSocialUserTagArgs = {
  dto: SocialUserTagUpdateDto
}

export type MutationAddSocialUserTagRelationArgs = {
  dto: SocialUserTagRelationUpdateDto
}

export type MutationAddSystemRoleArgs = {
  dto?: InputMaybe<SystemRoleUpdateDto>
}

export type MutationAddSystemUserArgs = {
  dto?: InputMaybe<SystemUserUpdateDto>
}

export type MutationAddTenantArgs = {
  dto?: InputMaybe<TenantUpdateDto>
}

export type MutationRemoveCustomerByIdsArgs = {
  ids: Array<Scalars['ID']['input']>
}

export type MutationRemoveDialogueByIdsArgs = {
  ids: Array<Scalars['ID']['input']>
}

export type MutationRemoveInfraFileByIdsArgs = {
  ids?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>
}

export type MutationRemoveMessageByIdsArgs = {
  ids: Array<Scalars['ID']['input']>
}

export type MutationRemoveQrCodeSocialUserTagRelationByIdsArgs = {
  ids: Array<Scalars['ID']['input']>
}

export type MutationRemoveRoleByIdsArgs = {
  ids?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>
}

export type MutationRemoveSocialQrCodeByIdsArgs = {
  ids: Array<Scalars['ID']['input']>
}

export type MutationRemoveSocialUserByIdsArgs = {
  ids: Array<Scalars['ID']['input']>
}

export type MutationRemoveSocialUserTagByIdsArgs = {
  ids: Array<Scalars['ID']['input']>
}

export type MutationRemoveSocialUserTagRelationByIdsArgs = {
  ids: Array<Scalars['ID']['input']>
}

export type MutationRemoveSystemRoleByIdsArgs = {
  ids?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>
}

export type MutationRemoveSystemUserByIdsArgs = {
  ids?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>
}

export type MutationRemoveTenantByIdsArgs = {
  ids?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>
}

export type MutationUpdateCustomerArgs = {
  dto: CustomerUpdateDto
}

export type MutationUpdateDialogueArgs = {
  dto: DialogueUpdateDto
}

export type MutationUpdateInfraFileArgs = {
  dto?: InputMaybe<InfraFileUpdateDto>
}

export type MutationUpdateMessageArgs = {
  dto: MessageUpdateDto
}

export type MutationUpdateQrCodeSocialUserTagRelationArgs = {
  dto: QrCodeSocialUserTagRelationUpdateDto
}

export type MutationUpdateRoleArgs = {
  dto?: InputMaybe<RoleUpdateDto>
}

export type MutationUpdateSocialQrCodeArgs = {
  dto: SocialQrCodeUpdateDto
}

export type MutationUpdateSocialUserArgs = {
  dto: SocialUserUpdateDto
}

export type MutationUpdateSocialUserTagArgs = {
  dto: SocialUserTagUpdateDto
}

export type MutationUpdateSocialUserTagRelationArgs = {
  dto: SocialUserTagRelationUpdateDto
}

export type MutationUpdateSystemRoleArgs = {
  dto?: InputMaybe<SystemRoleUpdateDto>
}

export type MutationUpdateSystemUserArgs = {
  dto?: InputMaybe<SystemUserUpdateDto>
}

export type MutationUpdateTenantArgs = {
  dto?: InputMaybe<TenantUpdateDto>
}

export type Page = {
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

export type PageDto = {
  current: Scalars['Int']['input']
  size: Scalars['Int']['input']
}

export type QrCodeSocialUserTagRelationPageResultDto = Page & {
  __typename?: 'QrCodeSocialUserTagRelationPageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records: Array<QrCodeSocialUserTagRelationResultDto>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  二维码 - 社交用户标签绑定表查询请求传输层对象 */
export type QrCodeSocialUserTagRelationQueryDto = {
  id?: InputMaybe<Scalars['ID']['input']>
  /**  二维码id */
  qrCodeId?: InputMaybe<Scalars['String']['input']>
  /**  社交二维码id */
  socialUserTagId?: InputMaybe<Scalars['String']['input']>
}

/**  二维码 - 社交用户标签绑定表查询结果传输层对象 */
export type QrCodeSocialUserTagRelationResultDto = {
  __typename?: 'QrCodeSocialUserTagRelationResultDTO'
  id: Scalars['ID']['output']
  /**  二维码id */
  qrCodeId?: Maybe<Scalars['String']['output']>
  /**  社交二维码id */
  socialUserTagId?: Maybe<Scalars['String']['output']>
}

/**  更新二维码 - 社交用户标签绑定表传输层对象 */
export type QrCodeSocialUserTagRelationUpdateDto = {
  id?: InputMaybe<Scalars['ID']['input']>
  /**  二维码id */
  qrCodeId?: InputMaybe<Scalars['String']['input']>
  /**  社交二维码id */
  socialUserTagId?: InputMaybe<Scalars['String']['input']>
}

export type Query = {
  __typename?: 'Query'
  _service: _Service
  /**  获取客户列表 */
  customerList: Array<CustomerResultDto>
  /**  获取客户分页 */
  customerPage: CustomerPageResultDto
  /**  获取客服 - 对话表列表 */
  dialogueList: Array<DialogueResultDto>
  /**  获取客服 - 对话表分页 */
  dialoguePage: DialoguePageResultDto
  /**  通过主键获取客户 */
  getCustomerById?: Maybe<CustomerResultDto>
  /**  通过主键获取客服 - 对话表 */
  getDialogueById: DialogueResultDto
  /**  通过主键获取文件表 */
  getInfraFileById?: Maybe<InfraFileResultDto>
  /**  通过主键获取客服 - 消息表 */
  getMessageById?: Maybe<MessageResultDto>
  /**  通过主键获取二维码 - 社交用户标签绑定表 */
  getQrCodeSocialUserTagRelationById?: Maybe<QrCodeSocialUserTagRelationResultDto>
  /**  通过主键获取系统角色表 */
  getRoleById?: Maybe<RoleResultDto>
  /**  通过主键获取二维码 */
  getSocialQrCodeById?: Maybe<SocialQrCodeResultDto>
  /**  通过主键获取社交用户表 */
  getSocialUserById?: Maybe<SocialUserResultDto>
  /**  通过主键获取社交用户标签 */
  getSocialUserTagById?: Maybe<SocialUserTagResultDto>
  /**  通过主键获取社交用户 - 标签 关联表 */
  getSocialUserTagRelationById?: Maybe<SocialUserTagRelationResultDto>
  /**  通过主键获取系统角色表 */
  getSystemRoleById?: Maybe<SystemRoleResultDto>
  /**  通过主键获取系统用户表 */
  getSystemUserById?: Maybe<SystemUserResultDto>
  /**  通过主键获取系统租户表 */
  getTenantById?: Maybe<TenantResultDto>
  /**  获取文件表列表 */
  infraFileList?: Maybe<Array<Maybe<InfraFileResultDto>>>
  /**  获取文件表分页 */
  infraFilePage?: Maybe<InfraFilePageResultDto>
  /**  获取客服 - 消息表列表 */
  messageList: Array<MessageResultDto>
  /**  获取客服 - 消息表分页 */
  messagePage: MessagePageResultDto
  /**  获取二维码 - 社交用户标签绑定表列表 */
  qrCodeSocialUserTagRelationList: Array<QrCodeSocialUserTagRelationResultDto>
  /**  获取二维码 - 社交用户标签绑定表分页 */
  qrCodeSocialUserTagRelationPage: QrCodeSocialUserTagRelationPageResultDto
  /**  获取系统角色表列表 */
  roleList?: Maybe<Array<Maybe<RoleResultDto>>>
  /**  获取系统角色表分页 */
  rolePage?: Maybe<RolePageResultDto>
  /**  获取二维码列表 */
  socialQrCodeList: Array<SocialQrCodeResultDto>
  /**  获取二维码分页 */
  socialQrCodePage: SocialQrCodePageResultDto
  /**  获取社交用户表列表 */
  socialUserList: Array<SocialUserResultDto>
  /**  获取社交用户表分页 */
  socialUserPage: SocialUserPageResultDto
  /**  获取社交用户标签列表 */
  socialUserTagList: Array<SocialUserTagResultDto>
  /**  获取社交用户标签分页 */
  socialUserTagPage: SocialUserTagPageResultDto
  /**  获取社交用户 - 标签 关联表列表 */
  socialUserTagRelationList: Array<SocialUserTagRelationResultDto>
  /**  获取社交用户 - 标签 关联表分页 */
  socialUserTagRelationPage: SocialUserTagRelationPageResultDto
  /**  获取系统角色表列表 */
  systemRoleList?: Maybe<Array<Maybe<SystemRoleResultDto>>>
  /**  获取系统角色表分页 */
  systemRolePage?: Maybe<SystemRolePageResultDto>
  /**  获取系统用户表列表 */
  systemUserList?: Maybe<Array<Maybe<SystemUserResultDto>>>
  /**  获取系统用户表分页 */
  systemUserPage?: Maybe<SystemUserPageResultDto>
  /**  获取系统租户表列 */
  tenantList?: Maybe<Array<Maybe<TenantResultDto>>>
  tenantPage?: Maybe<TenantPageResultDto>
}

export type QueryCustomerListArgs = {
  dto?: InputMaybe<CustomerQueryDto>
}

export type QueryCustomerPageArgs = {
  dto?: InputMaybe<CustomerQueryDto>
  pageDTO: PageDto
}

export type QueryDialogueListArgs = {
  dto?: InputMaybe<DialogueQueryDto>
}

export type QueryDialoguePageArgs = {
  dto?: InputMaybe<DialogueQueryDto>
  pageDTO: PageDto
}

export type QueryGetCustomerByIdArgs = {
  id: Scalars['ID']['input']
}

export type QueryGetDialogueByIdArgs = {
  id?: InputMaybe<Scalars['ID']['input']>
}

export type QueryGetInfraFileByIdArgs = {
  id?: InputMaybe<Scalars['ID']['input']>
}

export type QueryGetMessageByIdArgs = {
  id: Scalars['ID']['input']
}

export type QueryGetQrCodeSocialUserTagRelationByIdArgs = {
  id: Scalars['ID']['input']
}

export type QueryGetRoleByIdArgs = {
  id?: InputMaybe<Scalars['ID']['input']>
}

export type QueryGetSocialQrCodeByIdArgs = {
  id: Scalars['ID']['input']
}

export type QueryGetSocialUserByIdArgs = {
  id: Scalars['ID']['input']
}

export type QueryGetSocialUserTagByIdArgs = {
  id: Scalars['ID']['input']
}

export type QueryGetSocialUserTagRelationByIdArgs = {
  id: Scalars['ID']['input']
}

export type QueryGetSystemRoleByIdArgs = {
  id?: InputMaybe<Scalars['ID']['input']>
}

export type QueryGetSystemUserByIdArgs = {
  id?: InputMaybe<Scalars['ID']['input']>
}

export type QueryGetTenantByIdArgs = {
  id?: InputMaybe<Scalars['ID']['input']>
}

export type QueryInfraFileListArgs = {
  dto?: InputMaybe<InfraFileQueryDto>
}

export type QueryInfraFilePageArgs = {
  dto?: InputMaybe<InfraFileQueryDto>
  pageDTO?: InputMaybe<PageDto>
}

export type QueryMessageListArgs = {
  dto?: InputMaybe<MessageQueryDto>
}

export type QueryMessagePageArgs = {
  dto: MessageQueryDto
  pageDTO: PageDto
}

export type QueryQrCodeSocialUserTagRelationListArgs = {
  dto?: InputMaybe<QrCodeSocialUserTagRelationQueryDto>
}

export type QueryQrCodeSocialUserTagRelationPageArgs = {
  dto?: InputMaybe<QrCodeSocialUserTagRelationQueryDto>
  pageDTO: PageDto
}

export type QueryRoleListArgs = {
  dto?: InputMaybe<RoleQueryDto>
}

export type QueryRolePageArgs = {
  dto?: InputMaybe<RoleQueryDto>
  pageDTO?: InputMaybe<PageDto>
}

export type QuerySocialQrCodeListArgs = {
  dto?: InputMaybe<SocialQrCodeQueryDto>
}

export type QuerySocialQrCodePageArgs = {
  dto?: InputMaybe<SocialQrCodeQueryDto>
  pageDTO: PageDto
}

export type QuerySocialUserListArgs = {
  dto?: InputMaybe<SocialUserQueryDto>
}

export type QuerySocialUserPageArgs = {
  dto?: InputMaybe<SocialUserQueryDto>
  pageDTO: PageDto
}

export type QuerySocialUserTagListArgs = {
  dto?: InputMaybe<SocialUserTagQueryDto>
}

export type QuerySocialUserTagPageArgs = {
  dto?: InputMaybe<SocialUserTagQueryDto>
  pageDTO: PageDto
}

export type QuerySocialUserTagRelationListArgs = {
  dto?: InputMaybe<SocialUserTagRelationQueryDto>
}

export type QuerySocialUserTagRelationPageArgs = {
  dto?: InputMaybe<SocialUserTagRelationQueryDto>
  pageDTO: PageDto
}

export type QuerySystemRoleListArgs = {
  dto?: InputMaybe<SystemRoleQueryDto>
}

export type QuerySystemRolePageArgs = {
  dto?: InputMaybe<SystemRoleQueryDto>
  pageDTO?: InputMaybe<PageDto>
}

export type QuerySystemUserListArgs = {
  dto?: InputMaybe<SystemUserQueryDto>
}

export type QuerySystemUserPageArgs = {
  dto?: InputMaybe<SystemUserQueryDto>
  pageDTO?: InputMaybe<PageDto>
}

export type QueryTenantListArgs = {
  dto?: InputMaybe<TenantQueryDto>
}

export type QueryTenantPageArgs = {
  dto?: InputMaybe<TenantQueryDto>
  pageDTO?: InputMaybe<PageDto>
}

export type RolePageResultDto = Page & {
  __typename?: 'RolePageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records?: Maybe<Array<Maybe<RoleResultDto>>>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  系统角色表查询请求传输层对象 */
export type RoleQueryDto = {
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建人id */
  creatorId?: InputMaybe<Scalars['Int']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否删除 */
  isDeleted?: InputMaybe<Scalars['Int']['input']>
  /**  角色 */
  role?: InputMaybe<Scalars['String']['input']>
  /**  角色key */
  roleKey?: InputMaybe<Scalars['String']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  角色类型 */
  type?: InputMaybe<Scalars['Int']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新人id */
  updatorId?: InputMaybe<Scalars['Int']['input']>
}

/**  系统角色表查询结果传输层对象 */
export type RoleResultDto = {
  __typename?: 'RoleResultDTO'
  /**  创建时间 */
  createTime?: Maybe<Scalars['String']['output']>
  /**  创建人id */
  creatorId?: Maybe<Scalars['Int']['output']>
  id?: Maybe<Scalars['ID']['output']>
  /**  是否删除 */
  isDeleted?: Maybe<Scalars['Int']['output']>
  /**  角色 */
  role?: Maybe<Scalars['String']['output']>
  /**  角色key */
  roleKey?: Maybe<Scalars['String']['output']>
  /**  租户id */
  tenantId?: Maybe<Scalars['String']['output']>
  /**  角色类型 */
  type?: Maybe<Scalars['Int']['output']>
  /**  更新时间 */
  updateTime?: Maybe<Scalars['String']['output']>
  /**  更新人id */
  updatorId?: Maybe<Scalars['Int']['output']>
}

/**  更新系统角色表传输层对象 */
export type RoleUpdateDto = {
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建人id */
  creatorId?: InputMaybe<Scalars['Int']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否删除 */
  isDeleted?: InputMaybe<Scalars['Int']['input']>
  /**  角色 */
  role?: InputMaybe<Scalars['String']['input']>
  /**  角色key */
  roleKey?: InputMaybe<Scalars['String']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  角色类型 */
  type?: InputMaybe<Scalars['Int']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新人id */
  updatorId?: InputMaybe<Scalars['Int']['input']>
}

export type SocialQrCodePageResultDto = Page & {
  __typename?: 'SocialQrCodePageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records: Array<SocialQrCodeResultDto>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  二维码查询请求传输层对象 */
export type SocialQrCodeQueryDto = {
  /**  社交平台id */
  appId?: InputMaybe<Scalars['String']['input']>
  /**  内容 */
  content?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['Date']['input']>
  /**  创建人id */
  creatorId?: InputMaybe<Scalars['String']['input']>
  /**  创建人姓名 */
  creatorName?: InputMaybe<Scalars['String']['input']>
  /**  二维码描述 */
  describe?: InputMaybe<Scalars['String']['input']>
  /**  过期时间 */
  expireTime?: InputMaybe<Scalars['Date']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否是系统创建的 */
  isSystemCreated?: InputMaybe<Scalars['Int']['input']>
  /**  消息包id */
  messagePocketId?: InputMaybe<Scalars['String']['input']>
  /**  二维码链接 */
  qrUrl?: InputMaybe<Scalars['String']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  二维码类型 */
  type?: InputMaybe<Scalars['String']['input']>
}

/**  二维码查询结果传输层对象 */
export type SocialQrCodeResultDto = {
  __typename?: 'SocialQrCodeResultDTO'
  /**  社交平台id */
  appId?: Maybe<Scalars['String']['output']>
  /**  内容 */
  content?: Maybe<Scalars['String']['output']>
  /**  创建时间 */
  createTime?: Maybe<Scalars['Date']['output']>
  /**  创建人id */
  creatorId?: Maybe<Scalars['String']['output']>
  /**  创建人姓名 */
  creatorName?: Maybe<Scalars['String']['output']>
  /**  二维码描述 */
  describe?: Maybe<Scalars['String']['output']>
  /**  过期时间 */
  expireTime?: Maybe<Scalars['Date']['output']>
  id: Scalars['ID']['output']
  /**  是否是系统创建的 */
  isSystemCreated?: Maybe<Scalars['Int']['output']>
  /**  消息包id */
  messagePocketId?: Maybe<Scalars['String']['output']>
  /**  二维码链接 */
  qrUrl?: Maybe<Scalars['String']['output']>
  /**  租户id */
  tenantId?: Maybe<Scalars['String']['output']>
  /**  二维码类型 */
  type?: Maybe<Scalars['String']['output']>
}

/**  更新二维码传输层对象 */
export type SocialQrCodeUpdateDto = {
  /**  社交平台id */
  appId?: InputMaybe<Scalars['String']['input']>
  /**  内容 */
  content?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['Date']['input']>
  /**  创建人id */
  creatorId?: InputMaybe<Scalars['String']['input']>
  /**  创建人姓名 */
  creatorName?: InputMaybe<Scalars['String']['input']>
  /**  二维码描述 */
  describe?: InputMaybe<Scalars['String']['input']>
  /**  过期时间 */
  expireTime?: InputMaybe<Scalars['Date']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否是系统创建的 */
  isSystemCreated?: InputMaybe<Scalars['Int']['input']>
  /**  消息包id */
  messagePocketId?: InputMaybe<Scalars['String']['input']>
  /**  二维码链接 */
  qrUrl?: InputMaybe<Scalars['String']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  二维码类型 */
  type?: InputMaybe<Scalars['String']['input']>
}

export type SocialUserPageResultDto = Page & {
  __typename?: 'SocialUserPageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records: Array<SocialUserResultDto>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  社交用户表查询请求传输层对象 */
export type SocialUserQueryDto = {
  /**  appId */
  appId?: InputMaybe<Scalars['String']['input']>
  /**  用户头像 */
  avatar?: InputMaybe<Scalars['String']['input']>
  /**  最后一次的认证 code */
  code?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['Date']['input']>
  /**  创建者 */
  creator?: InputMaybe<Scalars['String']['input']>
  /**  是否删除 */
  deleted?: InputMaybe<Scalars['Boolean']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  用户昵称 */
  nickname?: InputMaybe<Scalars['String']['input']>
  /**  社交 openid */
  openid?: InputMaybe<Scalars['String']['input']>
  /**  手机号 */
  phone?: InputMaybe<Scalars['String']['input']>
  /**  原始 Token 数据，一般是 JSON 格式 */
  rawTokenInfo?: InputMaybe<Scalars['String']['input']>
  /**  原始用户数据，一般是 JSON 格式 */
  rawUserInfo?: InputMaybe<Scalars['String']['input']>
  /**  最后一次的认证 state */
  state?: InputMaybe<Scalars['String']['input']>
  /**  租户编号 */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  社交 token */
  token?: InputMaybe<Scalars['String']['input']>
  /**  社交平台的类型 */
  type?: InputMaybe<Scalars['String']['input']>
  /**  唯一id */
  unionId?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['Date']['input']>
  /**  更新者 */
  updater?: InputMaybe<Scalars['String']['input']>
}

/**  社交用户表查询结果传输层对象 */
export type SocialUserResultDto = {
  __typename?: 'SocialUserResultDTO'
  /**  appId */
  appId?: Maybe<Scalars['String']['output']>
  /**  用户头像 */
  avatar?: Maybe<Scalars['String']['output']>
  /**  最后一次的认证 code */
  code?: Maybe<Scalars['String']['output']>
  /**  创建时间 */
  createTime?: Maybe<Scalars['Date']['output']>
  /**  创建者 */
  creator?: Maybe<Scalars['String']['output']>
  /**  是否删除 */
  deleted?: Maybe<Scalars['Boolean']['output']>
  id: Scalars['ID']['output']
  /**  是否订阅 */
  isSubscribe?: Maybe<Scalars['Boolean']['output']>
  /**  用户昵称 */
  nickname?: Maybe<Scalars['String']['output']>
  /**  社交 openid */
  openid?: Maybe<Scalars['String']['output']>
  /**  手机号 */
  phone?: Maybe<Scalars['String']['output']>
  /**  原始 Token 数据，一般是 JSON 格式 */
  rawTokenInfo?: Maybe<Scalars['String']['output']>
  /**  原始用户数据，一般是 JSON 格式 */
  rawUserInfo?: Maybe<Scalars['String']['output']>
  /**  最后一次的认证 state */
  state?: Maybe<Scalars['String']['output']>
  /**  用户标签 */
  tags: Array<SocialUserTagResultDto>
  /**  租户编号 */
  tenantId?: Maybe<Scalars['String']['output']>
  /**  社交 token */
  token?: Maybe<Scalars['String']['output']>
  /**  社交平台的类型 */
  type?: Maybe<Scalars['String']['output']>
  /**  唯一id */
  unionId?: Maybe<Scalars['String']['output']>
  /**  更新时间 */
  updateTime?: Maybe<Scalars['Date']['output']>
  /**  更新者 */
  updater?: Maybe<Scalars['String']['output']>
}

export type SocialUserTagPageResultDto = Page & {
  __typename?: 'SocialUserTagPageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records: Array<SocialUserTagResultDto>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  社交用户标签查询请求传输层对象 */
export type SocialUserTagQueryDto = {
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['Date']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  标签背景颜色 */
  tagBgColor?: InputMaybe<Scalars['String']['input']>
  /**  标签名 */
  tagName?: InputMaybe<Scalars['String']['input']>
  /**  标签字体颜色 */
  tagTextColor?: InputMaybe<Scalars['String']['input']>
  /**  租户Id  */
  tenantId?: InputMaybe<Scalars['String']['input']>
}

export type SocialUserTagRelationPageResultDto = Page & {
  __typename?: 'SocialUserTagRelationPageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records: Array<SocialUserTagRelationResultDto>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  社交用户 - 标签 关联表查询请求传输层对象 */
export type SocialUserTagRelationQueryDto = {
  id?: InputMaybe<Scalars['ID']['input']>
  /**  标签Id */
  tagId?: InputMaybe<Scalars['String']['input']>
  /**  社交用户id */
  unionId?: InputMaybe<Scalars['String']['input']>
}

/**  社交用户 - 标签 关联表查询结果传输层对象 */
export type SocialUserTagRelationResultDto = {
  __typename?: 'SocialUserTagRelationResultDTO'
  id: Scalars['ID']['output']
  /**  标签Id */
  tagId?: Maybe<Scalars['String']['output']>
  /**  社交用户id */
  unionId?: Maybe<Scalars['String']['output']>
}

/**  更新社交用户 - 标签 关联表传输层对象 */
export type SocialUserTagRelationUpdateDto = {
  id?: InputMaybe<Scalars['ID']['input']>
  /**  标签Id */
  tagId?: InputMaybe<Scalars['String']['input']>
  /**  社交用户id */
  unionId?: InputMaybe<Scalars['String']['input']>
}

/**  社交用户标签查询结果传输层对象 */
export type SocialUserTagResultDto = {
  __typename?: 'SocialUserTagResultDTO'
  /**  创建时间 */
  createTime?: Maybe<Scalars['Date']['output']>
  id: Scalars['ID']['output']
  /**  标签背景颜色 */
  tagBgColor?: Maybe<Scalars['String']['output']>
  /**  标签名 */
  tagName?: Maybe<Scalars['String']['output']>
  /**  标签字体颜色 */
  tagTextColor?: Maybe<Scalars['String']['output']>
  /**  租户Id  */
  tenantId?: Maybe<Scalars['String']['output']>
}

/**  更新社交用户标签传输层对象 */
export type SocialUserTagUpdateDto = {
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['Date']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  标签背景颜色 */
  tagBgColor?: InputMaybe<Scalars['String']['input']>
  /**  标签名 */
  tagName?: InputMaybe<Scalars['String']['input']>
  /**  标签字体颜色 */
  tagTextColor?: InputMaybe<Scalars['String']['input']>
  /**  租户Id  */
  tenantId?: InputMaybe<Scalars['String']['input']>
}

/**  更新社交用户表传输层对象 */
export type SocialUserUpdateDto = {
  /**  appId */
  appId?: InputMaybe<Scalars['String']['input']>
  /**  用户头像 */
  avatar?: InputMaybe<Scalars['String']['input']>
  /**  最后一次的认证 code */
  code?: InputMaybe<Scalars['String']['input']>
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['Date']['input']>
  /**  创建者 */
  creator?: InputMaybe<Scalars['String']['input']>
  /**  是否删除 */
  deleted?: InputMaybe<Scalars['Boolean']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否订阅 */
  isSubscribe?: InputMaybe<Scalars['Boolean']['input']>
  /**  用户昵称 */
  nickname?: InputMaybe<Scalars['String']['input']>
  /**  社交 openid */
  openid?: InputMaybe<Scalars['String']['input']>
  /**  手机号 */
  phone?: InputMaybe<Scalars['String']['input']>
  /**  原始 Token 数据，一般是 JSON 格式 */
  rawTokenInfo?: InputMaybe<Scalars['String']['input']>
  /**  原始用户数据，一般是 JSON 格式 */
  rawUserInfo?: InputMaybe<Scalars['String']['input']>
  /**  最后一次的认证 state */
  state?: InputMaybe<Scalars['String']['input']>
  /**  租户编号 */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  社交 token */
  token?: InputMaybe<Scalars['String']['input']>
  /**  社交平台的类型 */
  type?: InputMaybe<Scalars['String']['input']>
  /**  唯一id */
  unionId?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['Date']['input']>
  /**  更新者 */
  updater?: InputMaybe<Scalars['String']['input']>
}

export type SystemRolePageResultDto = Page & {
  __typename?: 'SystemRolePageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records?: Maybe<Array<Maybe<SystemRoleResultDto>>>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  系统角色表查询请求传输层对象 */
export type SystemRoleQueryDto = {
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建人id */
  creatorId?: InputMaybe<Scalars['Int']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否删除 */
  isDeleted?: InputMaybe<Scalars['Int']['input']>
  /**  角色 */
  role?: InputMaybe<Scalars['String']['input']>
  /**  角色key */
  roleKey?: InputMaybe<Scalars['String']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  角色类型 */
  type?: InputMaybe<Scalars['Int']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新人id */
  updatorId?: InputMaybe<Scalars['Int']['input']>
}

/**  系统角色表查询结果传输层对象 */
export type SystemRoleResultDto = {
  __typename?: 'SystemRoleResultDTO'
  /**  创建时间 */
  createTime?: Maybe<Scalars['String']['output']>
  /**  创建人id */
  creatorId?: Maybe<Scalars['Int']['output']>
  id?: Maybe<Scalars['ID']['output']>
  /**  是否删除 */
  isDeleted?: Maybe<Scalars['Int']['output']>
  /**  角色 */
  role?: Maybe<Scalars['String']['output']>
  /**  角色key */
  roleKey?: Maybe<Scalars['String']['output']>
  /**  租户id */
  tenantId?: Maybe<Scalars['String']['output']>
  /**  角色类型 */
  type?: Maybe<Scalars['Int']['output']>
  /**  更新时间 */
  updateTime?: Maybe<Scalars['String']['output']>
  /**  更新人id */
  updatorId?: Maybe<Scalars['Int']['output']>
}

/**  更新系统角色表传输层对象 */
export type SystemRoleUpdateDto = {
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建人id */
  creatorId?: InputMaybe<Scalars['Int']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否删除 */
  isDeleted?: InputMaybe<Scalars['Int']['input']>
  /**  角色 */
  role?: InputMaybe<Scalars['String']['input']>
  /**  角色key */
  roleKey?: InputMaybe<Scalars['String']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  角色类型 */
  type?: InputMaybe<Scalars['Int']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新人id */
  updatorId?: InputMaybe<Scalars['Int']['input']>
}

export type SystemUserPageResultDto = Page & {
  __typename?: 'SystemUserPageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records?: Maybe<Array<Maybe<SystemUserResultDto>>>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  系统用户表查询请求传输层对象 */
export type SystemUserQueryDto = {
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建人id */
  creatorId?: InputMaybe<Scalars['Int']['input']>
  /**  是否删除 */
  deleted?: InputMaybe<Scalars['Boolean']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  isDeleted?: InputMaybe<Scalars['Boolean']['input']>
  /**  密码 */
  password?: InputMaybe<Scalars['String']['input']>
  /**  手机号 */
  phone?: InputMaybe<Scalars['String']['input']>
  /**  盐 */
  salt?: InputMaybe<Scalars['String']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新人id */
  updatorId?: InputMaybe<Scalars['Int']['input']>
  /**  用户姓名 */
  userName?: InputMaybe<Scalars['String']['input']>
}

/**  系统用户表查询结果传输层对象 */
export type SystemUserResultDto = {
  __typename?: 'SystemUserResultDTO'
  /**  创建时间 */
  createTime?: Maybe<Scalars['String']['output']>
  /**  创建人id */
  creatorId?: Maybe<Scalars['Int']['output']>
  /**  是否删除 */
  deleted?: Maybe<Scalars['Boolean']['output']>
  id?: Maybe<Scalars['ID']['output']>
  isDeleted?: Maybe<Scalars['Boolean']['output']>
  /**  密码 */
  password?: Maybe<Scalars['String']['output']>
  /**  手机号 */
  phone?: Maybe<Scalars['String']['output']>
  /**  盐 */
  salt?: Maybe<Scalars['String']['output']>
  /**  租户id */
  tenantId?: Maybe<Scalars['String']['output']>
  /**  更新时间 */
  updateTime?: Maybe<Scalars['String']['output']>
  /**  更新人id */
  updatorId?: Maybe<Scalars['Int']['output']>
  /**  用户姓名 */
  userName?: Maybe<Scalars['String']['output']>
}

/**  更新系统用户表传输层对象 */
export type SystemUserUpdateDto = {
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建人id */
  creatorId?: InputMaybe<Scalars['Int']['input']>
  /**  是否删除 */
  deleted?: InputMaybe<Scalars['Boolean']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  isDeleted?: InputMaybe<Scalars['Boolean']['input']>
  /**  密码 */
  password?: InputMaybe<Scalars['String']['input']>
  /**  手机号 */
  phone?: InputMaybe<Scalars['String']['input']>
  /**  盐 */
  salt?: InputMaybe<Scalars['String']['input']>
  /**  租户id */
  tenantId?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新人id */
  updatorId?: InputMaybe<Scalars['Int']['input']>
  /**  用户姓名 */
  userName?: InputMaybe<Scalars['String']['input']>
}

export type TenantPageResultDto = Page & {
  __typename?: 'TenantPageResultDTO'
  current: Scalars['Int']['output']
  optimizeCountSql: Scalars['Boolean']['output']
  orders: Array<Scalars['String']['output']>
  pages: Scalars['Int']['output']
  records?: Maybe<Array<Maybe<TenantResultDto>>>
  searchCount: Scalars['Boolean']['output']
  size: Scalars['Int']['output']
  total: Scalars['Int']['output']
}

/**  系统租户表查询请求传输层对象 */
export type TenantQueryDto = {
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建人id */
  creatorId?: InputMaybe<Scalars['Int']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否删除 */
  isDeleted?: InputMaybe<Scalars['Int']['input']>
  /**  0:失效,1:生效 */
  status?: InputMaybe<Scalars['Int']['input']>
  /**  租户名 */
  tenantName?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新人id */
  updatorId?: InputMaybe<Scalars['Int']['input']>
}

/**  系统租户表查询结果传输层对象 */
export type TenantResultDto = {
  __typename?: 'TenantResultDTO'
  /**  创建时间 */
  createTime?: Maybe<Scalars['String']['output']>
  /**  创建人id */
  creatorId?: Maybe<Scalars['Int']['output']>
  id?: Maybe<Scalars['ID']['output']>
  /**  是否删除 */
  isDeleted?: Maybe<Scalars['Int']['output']>
  /**  0:失效,1:生效 */
  status?: Maybe<Scalars['Int']['output']>
  /**  租户名 */
  tenantName?: Maybe<Scalars['String']['output']>
  /**  更新时间 */
  updateTime?: Maybe<Scalars['String']['output']>
  /**  更新人id */
  updatorId?: Maybe<Scalars['Int']['output']>
}

/**  更新系统租户表传输层对象 */
export type TenantUpdateDto = {
  /**  创建时间 */
  createTime?: InputMaybe<Scalars['String']['input']>
  /**  创建人id */
  creatorId?: InputMaybe<Scalars['Int']['input']>
  id?: InputMaybe<Scalars['ID']['input']>
  /**  是否删除 */
  isDeleted?: InputMaybe<Scalars['Int']['input']>
  /**  0:失效,1:生效 */
  status?: InputMaybe<Scalars['Int']['input']>
  /**  租户名 */
  tenantName?: InputMaybe<Scalars['String']['input']>
  /**  更新时间 */
  updateTime?: InputMaybe<Scalars['String']['input']>
  /**  更新人id */
  updatorId?: InputMaybe<Scalars['Int']['input']>
}

export type _Service = {
  __typename?: '_Service'
  sdl: Scalars['String']['output']
}

export type DialoguesQueryVariables = Exact<{
  current: Scalars['Int']['input']
  size: Scalars['Int']['input']
}>

export type DialoguesQuery = {
  __typename?: 'Query'
  dialogues: {
    __typename?: 'DialoguePageResultDTO'
    total: number
    size: number
    pages: number
    current: number
    records: Array<{
      __typename?: 'DialogueResultDTO'
      id: string
      scope: number
      userId: string
      appId: string
      remark?: string | null
      isTop: boolean
      appType: string
      lastMessage: string
      unreadTotal: number
      createTime: any
      user?: {
        __typename?: 'SocialUserResultDTO'
        id: string
        nickname?: string | null
        openid?: string | null
        avatar?: string | null
      } | null
    }>
  }
}

export type MessagesQueryVariables = Exact<{
  current: Scalars['Int']['input']
  size: Scalars['Int']['input']
  dialogueId: Scalars['String']['input']
}>

export type MessagesQuery = {
  __typename?: 'Query'
  messagePage: {
    __typename?: 'MessagePageResultDTO'
    current: number
    total: number
    size: number
    pages: number
    records: Array<{
      __typename?: 'MessageResultDTO'
      id: string
      messageType: string
      content: string
      creator: string
      createTime: string
    }>
  }
}

export type TestQueryQueryVariables = Exact<{
  dto?: InputMaybe<DialogueQueryDto>
}>

export type TestQueryQuery = {
  __typename?: 'Query'
  dialogueList: Array<{
    __typename?: 'DialogueResultDTO'
    id: string
    userId: string
    scope: number
    remark?: string | null
    isTop: boolean
    topTime?: string | null
    appType: string
    appId: string
    creator: string
    createTime: any
    updater?: string | null
    updateTime?: string | null
    deleted?: boolean | null
    lastMessage: string
    unreadTotal: number
    user?: {
      __typename?: 'SocialUserResultDTO'
      id: string
      type?: string | null
      openid?: string | null
      token?: string | null
      rawTokenInfo?: string | null
      nickname?: string | null
      phone?: string | null
      avatar?: string | null
      rawUserInfo?: string | null
      code?: string | null
      state?: string | null
      unionId?: string | null
      creator?: string | null
      createTime?: any | null
      updater?: string | null
      updateTime?: any | null
      deleted?: boolean | null
      tenantId?: string | null
      appId?: string | null
      isSubscribe?: boolean | null
      tags: Array<{
        __typename?: 'SocialUserTagResultDTO'
        id: string
        tagName?: string | null
        tagBgColor?: string | null
      }>
    } | null
  }>
  systemUserList?: Array<{
    __typename?: 'SystemUserResultDTO'
    id?: string | null
    phone?: string | null
    userName?: string | null
    password?: string | null
  } | null> | null
}

export const DialoguesDocument = gql`
  query Dialogues($current: Int!, $size: Int!) {
    dialogues: dialoguePage(pageDTO: { current: $current, size: $size }, dto: {}) {
      records {
        id
        scope
        userId
        user {
          id
          nickname
          openid
          avatar
        }
        appId
        remark
        isTop
        appType
        lastMessage
        unreadTotal
        createTime
      }
      total
      size
      pages
      current
    }
  }
`

/**
 * __useDialoguesQuery__
 *
 * To run a query within a React component, call `useDialoguesQuery` and pass it any options that fit your needs.
 * When your component renders, `useDialoguesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useDialoguesQuery({
 *   variables: {
 *      current: // value for 'current'
 *      size: // value for 'size'
 *   },
 * });
 */
export function useDialoguesQuery(baseOptions: Apollo.QueryHookOptions<DialoguesQuery, DialoguesQueryVariables>) {
  const options = { ...defaultOptions, ...baseOptions }
  return Apollo.useQuery<DialoguesQuery, DialoguesQueryVariables>(DialoguesDocument, options)
}
export function useDialoguesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<DialoguesQuery, DialoguesQueryVariables>,
) {
  const options = { ...defaultOptions, ...baseOptions }
  return Apollo.useLazyQuery<DialoguesQuery, DialoguesQueryVariables>(DialoguesDocument, options)
}
export type DialoguesQueryHookResult = ReturnType<typeof useDialoguesQuery>
export type DialoguesLazyQueryHookResult = ReturnType<typeof useDialoguesLazyQuery>
export type DialoguesQueryResult = Apollo.QueryResult<DialoguesQuery, DialoguesQueryVariables>
export const MessagesDocument = gql`
  query Messages($current: Int!, $size: Int!, $dialogueId: String!) {
    messagePage(pageDTO: { current: $current, size: $size }, dto: { dialogueId: $dialogueId }) {
      current
      total
      size
      pages
      records {
        id
        messageType
        content
        creator
        createTime
      }
    }
  }
`

/**
 * __useMessagesQuery__
 *
 * To run a query within a React component, call `useMessagesQuery` and pass it any options that fit your needs.
 * When your component renders, `useMessagesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useMessagesQuery({
 *   variables: {
 *      current: // value for 'current'
 *      size: // value for 'size'
 *      dialogueId: // value for 'dialogueId'
 *   },
 * });
 */
export function useMessagesQuery(baseOptions: Apollo.QueryHookOptions<MessagesQuery, MessagesQueryVariables>) {
  const options = { ...defaultOptions, ...baseOptions }
  return Apollo.useQuery<MessagesQuery, MessagesQueryVariables>(MessagesDocument, options)
}
export function useMessagesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<MessagesQuery, MessagesQueryVariables>) {
  const options = { ...defaultOptions, ...baseOptions }
  return Apollo.useLazyQuery<MessagesQuery, MessagesQueryVariables>(MessagesDocument, options)
}
export type MessagesQueryHookResult = ReturnType<typeof useMessagesQuery>
export type MessagesLazyQueryHookResult = ReturnType<typeof useMessagesLazyQuery>
export type MessagesQueryResult = Apollo.QueryResult<MessagesQuery, MessagesQueryVariables>
export const TestQueryDocument = gql`
  query TestQuery($dto: DialogueQueryDTO) {
    dialogueList(dto: $dto) {
      id
      userId
      user {
        id
        type
        openid
        token
        rawTokenInfo
        nickname
        phone
        avatar
        rawUserInfo
        code
        state
        unionId
        creator
        createTime
        updater
        updateTime
        deleted
        tenantId
        appId
        isSubscribe
        tags {
          id
          tagName
          tagBgColor
        }
      }
      scope
      remark
      isTop
      topTime
      appType
      appId
      creator
      createTime
      updater
      updateTime
      deleted
      lastMessage
      unreadTotal
    }
    systemUserList(dto: {}) {
      id
      phone
      userName
      password
    }
  }
`

/**
 * __useTestQueryQuery__
 *
 * To run a query within a React component, call `useTestQueryQuery` and pass it any options that fit your needs.
 * When your component renders, `useTestQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useTestQueryQuery({
 *   variables: {
 *      dto: // value for 'dto'
 *   },
 * });
 */
export function useTestQueryQuery(baseOptions?: Apollo.QueryHookOptions<TestQueryQuery, TestQueryQueryVariables>) {
  const options = { ...defaultOptions, ...baseOptions }
  return Apollo.useQuery<TestQueryQuery, TestQueryQueryVariables>(TestQueryDocument, options)
}
export function useTestQueryLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<TestQueryQuery, TestQueryQueryVariables>,
) {
  const options = { ...defaultOptions, ...baseOptions }
  return Apollo.useLazyQuery<TestQueryQuery, TestQueryQueryVariables>(TestQueryDocument, options)
}
export type TestQueryQueryHookResult = ReturnType<typeof useTestQueryQuery>
export type TestQueryLazyQueryHookResult = ReturnType<typeof useTestQueryLazyQuery>
export type TestQueryQueryResult = Apollo.QueryResult<TestQueryQuery, TestQueryQueryVariables>
